package com.ibeetl.cms.dao;

import java.util.List;

import com.ibeetl.cms.web.query.RentingQuery;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.mapper.BaseMapper;
import org.beetl.sql.core.engine.PageQuery;

import  com.ibeetl.cms.entity.*;

/**
 * Renting Dao
 */
@SqlResource("cms.renting")
public interface RentingDao extends BaseMapper<Renting>{
    public PageQuery<Renting> queryByCondition(PageQuery query);
    public void batchDelRentingByIds( List<Long> ids);

    public List<Renting> queryCompany(RentingQuery condtion);
    PageQuery<Renting> queryEmployees(PageQuery page);
    public PageQuery<Renting> findenterprise(PageQuery query);
    PageQuery<Renting>  queryDoneTask(PageQuery page);

    int  findMonth(Long user_id);

    int queryEmployeesCount(RentingQuery condition);
}